package com.pearl.jacksoncore.demo.feature;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * @author TD
 * @version 1.0
 * @date 2024/4/2
 */

public class PersonVO {

    private String name;

    public PersonVO() {
        System.out.println("无参构造");
    }

    @JsonCreator
    public PersonVO(String name) {
        System.out.println("有参构造");
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}